{extend name="layout" /}

{block name="main"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-10">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{$meta_title}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" name="post-form" id="commentForm" method="post" action="">
                        <input type="hidden" name="user_id" value="{$info.user_id}">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">会员手机号：</label>
                            <div class="col-sm-8">
                                <input  name="mobile" value="{$info.mobile}" length="11" type="text" class="form-control" required="" aria-required="true">
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 会员手机号不能为空</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">会员昵称：</label>
                            <div class="col-sm-8">
                                <input  name="nickname" value="{$info.nickname}" type="text" class="form-control" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">头像：</label>
                            <div class="col-sm-8 js-upload-image">
                                 <ul class="uploader-list" id="file_list_head_pic">
                                    {notempty name="$info['head_pic']"}
                                    <div class="file-item thumbnail">
                                        <a class="img-link" >
                                            <img src="{$info['head_pic']|get_thumb}" width="100">
                                        </a>
                                        <i class="fa fa-times-circle remove-picture"></i>
                                    </div>
                                    {/notempty}
                                 </ul>
                                 <div class="clearfix"></div>
                                 <input type="hidden" name="head_pic" data-multiple="false" data-size="2*1024" data-ext="jpeg,png,jpg,gif" id="head_pic" value="{$info.head_pic|default=0}">
                                 <div id="picker_head_pic">
                                  图片上传
                                 </div>
                             </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">状态：</label>
                            <div class="col-sm-8">
                                <div class="radio i-checks">
                                    <label><input type="radio" {if $info.status eq 1}checked{/if} value="1"  name="status"> <i></i> 正常</label>
                                    <label><input type="radio" value="0" {if $info.status eq 0}checked{/if} name="status"> <i></i> 禁用</label>
                                </div>
                            </div>
                        </div>
                        <hr>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <button class="btn btn-primary btn-post" target-form="post-form" type="submit">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

